.flipper {
	perspective: 400px;
	position: relative;
	width: 300px;
	height: 44px;
}

.flipper + .flipper {
	margin-top: 1em;
}

.flipper-object {
	position: absolute;
	width: 100%;
	height: 100%;
	transition: transform 1s;
	transform-style: preserve-3d;
}

.panel {
	display: flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	top: 0;
	width: 100%;
	height: 100%;
	position: absolute;
	backface-visibility: hidden;
}

.flipper-vertical .back {
	transform: rotateX(180deg);
}

.flipper-horizontal .back {
	transform: rotateY(180deg);
}

.back {
	background-color: #CC3232;
}

.front {
	background-color: #739328;
}

.flipper:hover .flipper-vertical {
	transform: rotateX(180deg);
	animation: pulse 2s 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) 5 alternate both;
}

.flipper:hover .flipper-horizontal {
	transform: rotateY(180deg);
	animation: pulse 1s 1s infinite alternate both;
}

/*The animation keyframe*/

@keyframes pulse {
  100% {
		text-shadow: 0 0 5px #bbb;
		box-shadow: 0 0 3px 4px #bbb;
  }
}
